define([
  ELMP.resource('components/selectPerson/index.js', 'lib'),
  ELMP.resource('components/vue-department/index.js', 'lib'),
  ELMP.resource('components/vue-collapse/index.js', 'lib'),
  ELMP.resource('components/selectProject/index.js', 'lib'),
  ELMP.resource('components/selectRole/index.js', 'lib'),
  ELMP.resource('components/advancedSelect/index.js', 'lib'),
  ELMP.resource('components/selectFile/index.js', 'lib'),
  ELMP.resource('components/queryLayout/index.js', 'lib'),
  ELMP.resource('components/upload/index.js', 'lib'),
  'vue-treeselect',
  ELMP.resource('components/filedocList/index.js', 'lib'),
  ELMP.resource('components/btnQueryGroup/index.js', 'lib'),
  ELMP.resource('components/showColumns/index.js', 'lib'),
],
  function () {
    const componentList = Array.from(arguments)
    function init(vue) {
      componentList.forEach(component => {
        if(component){
          if (component.default) {
            component = component.default
          }
          vue.component(component.name, component)
        }
      })
    }
    return {
      init: init
    }
  })